home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lantools / bkup / s_blogs.bat < prev    next >
DOS Batch File  |  1990-07-22  |  962b  |  40 lines

  1. :... S_BLOGS.BAT, Craig. MacPherson
  2. :    Variables passed
  3. :     %1 Userid
  4. :     %2 DELETE or PRINT or READ
  5. :     %3 SUM or HIS
  6.  
  7. :... Make sure no jobs are running
  8.      if exist n:\backups\backup.jbs\%1.bat goto JOB_ALREADY_IN_PROGRESS
  9.      if exist n:\backups\restore.jbs\%1.bat goto JOB_ALREADY_IN_PROGRESS
  10.      goto CONTINUE
  11.  
  12. :JOB_ALREADY_IN_PROGRESS
  13.      smessage "A backup job is already in" "progress for this workstation"
  14.      goto end
  15.  
  16. :CONTINUE
  17.      goto %2
  18.      goto END
  19.      
  20. :READ
  21.      if not exist z:\backups\activity.lgs\%1.%3 goto NOFILE
  22.      readme z:\backups\activity.lgs\%1.%3
  23.      goto END
  24.  
  25. :DELETE
  26.      if exist z:\backups\activity.lgs\%1.%3 del z:\backups\activity.lgs\%1.%3
  27.      goto END
  28.  
  29. :PRINT
  30.      if not exist z:\backups\activity.lgs\%1.%3 goto NOFILE
  31.      copy z:\backups\activity.lgs\%1.%3 lpt1: >>nul:
  32.      echo  >lpt1:
  33.      goto end
  34.  
  35. :NOFILE
  36.      smessage "No file exists"
  37.      goto end
  38.  
  39. :END
  40.